﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="StoryList.aspx.vb" Inherits="AbuDhabi_Speech.StoryList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <br />
</p>
<p>
</p>
<p>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
        DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
        DataKeyNames="ID" Width="897px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="Story_Details.aspx?StoryID={0}" 
                DataTextField="Title" HeaderText="Post Title" />
            <asp:BoundField DataField="Author" HeaderText="Author" 
                SortExpression="Author" />
            <asp:BoundField DataField="Date_Posted" HeaderText="Date_Posted" 
                SortExpression="Date_Posted" DataFormatString="{0:d}" />
            <asp:ImageField DataImageUrlField="Picture" HeaderText="Thumbnail Image">
                <ControlStyle Height="80px" Width="80px" />
                <ItemStyle Height="80px" Width="80px" />
            </asp:ImageField>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:AbuDhabi_Speech_ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:AbuDhabi_Speech_ConnectionString.ProviderName %>" 
        
        SelectCommand="SELECT [Title], [Author], [Date_Posted], [ID], [Picture] FROM [Posts] WHERE ([Type] = ?) ORDER BY [ID] DESC">
        <SelectParameters>
            <asp:Parameter DefaultValue="1" Name="Type" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</p>
<p>
    &nbsp;</p>
<p class="RSS_feed">
    <asp:HyperLink ID="StoryRSS" runat="server"
        ImageUrl="~/images/RSS.jpg"
         NavigateUrl="~/Feeds/StoryFeed.aspx" BorderWidth="0px">RSS</asp:HyperLink>
</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
  
</asp:Content>

